package com.linewell.encryption.services;


import com.linewell.encryption.pojo.SM2KeyInfo;

/**
 * 生成秘钥
 * Company: 南威软件股份有限公司
 *
 * @author wucan
 * @date 2019-03-21
 */
public interface CreateKeyService {

    /**
     * 随机生成SM2的公私钥
     *
     * @return SM2的公私钥对象
     * @throws Exception 异常
     */
    SM2KeyInfo createSM2Key() throws Exception;

    /**
     * 生成SM4的秘钥
     *
     * @return SM4的秘钥
     * @throws Exception 异常
     */
    String createSM4Key() throws Exception;

}
